package com.smart.model.dtomapper;

import com.smart.model.customdo.ProjectADO;
import com.smart.model.domain.ProjectDO;
import com.smart.model.request.ProjectRequest;
import com.smart.model.vo.ProjectVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ProjectDtoMapper {

    ProjectDtoMapper INSTANCE = Mappers.getMapper(ProjectDtoMapper.class);

    /**
    * DO to VO
    * @param projectDO
    * @return
    */
    ProjectVO do2VO(ProjectDO projectDO);

    /**
     * reuest to DO
     * @param projectDO
     * @return
     */
    ProjectDO request2DO(ProjectRequest projectDO);

    /**
     * ADO to Vo
     * @param projectADO
     * @return
     */
    ProjectVO ado2VO(ProjectADO projectADO);
}
